package factory_method_pattern.sample;

/**
 * 模拟雷锋同志类
 * @author ricejson
 */
public class LeiFeng {
    protected String name;

    public LeiFeng(String name) {
        this.name = name;
    }

    public void sweep() {
        System.out.println("扫地");
    }
    public void wash() {
        System.out.println("洗衣");
    }
    public void buyRice() {
        System.out.println("买米");
    }
}
